﻿using ExchangeClient.Abstractions.Model;
using HKH.Tasks;
using Microsoft.Extensions.Caching.Memory;
using SyncService.Abstractions.Services;
using SyncService.Abstractions.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SyncService.Core.Tasks
{
    public class AssetTask : SyncTaskBase
    {
        private RequestData _requestData;
        public AssetTask(ISyncService syncService, RequestData requestData, IMemoryCache cache) : base(syncService)
        {
            _requestData = requestData;
        }

        protected override void ExecuteSyncService(ParallelTaskResult result)
        {
            _syncService.Execute(_requestData);
        }
    }
}
